Fix the PORT for issue #895

Ian Blenke 9 years ago
parent
commit
8b267857e8
1 changed files with 2 additions and 2 deletions
  1. 2 2
      docker/scripts/init

+ 2 - 2
docker/scripts/init

@@ -150,8 +150,8 @@ source /app/.env
150 150
 
151 151
 # Fixup the Procfile and prepare the PORT
152 152
 [ -n "\${DO_NOT_RUN_JOBS}" ] && perl -pi -e 's/^jobs:/#jobs:/' /app/Procfile
153
-perl -pi -e 's/rails server\$/rails server -b 0.0.0.0 -p \\\$PORT/' /app/Procfile
154
-export PORT
153
+perl -pi -e 's/rails server -b0.0.0.0\$/rails server -b 0.0.0.0 -p \\\$PORT/' /app/Procfile
154
+export PORT="\${PORT:-3000}"
155 155
 
156 156
 # Start huginn
157 157
 exec sudo -u huginn -EH bundle exec foreman start